#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main()
{
    pid_t pid;
    pid = vfork();
    if (pid < 0)
        printf("vfork failed\n");
    else if (pid == 0)
    {
        sleep(1);
        printf("hello I am child\n");
    }
    else
        printf("hello I am parent\n");
    exit(0);
}
